<? if(!defined('IN_TIPASK')) exit('Access Denied'); ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd"><? $user=$this->user; $setting=$this->setting; ?><html xmlns="http://www.w3.org/1999/xhtml">

<head>
<title>Tipask's Control Panel</title>
<meta http-equiv="Content-Type" content="text/html; charset=<?=TIPASK_CHARSET?>">
<link media="all" type="text/css" href="css/common/admin/admincp.css" rel="stylesheet"/>

</head>

<body>

<div id="append">
</div>
<script type="text/javascript">
function headermenu(ctrl) {
ctrl.className = ctrl.className == 'otherson' ? 'othersoff' : 'otherson';
var menu = document.getElementById('header_menu_body');
if(!menu) {
menu = document.createElement('div');
menu.id = 'header_menu_body';
menu.innerHTML = '<ul>' + document.getElementById('header_menu_menu').innerHTML + '</ul>';
var obj = ctrl;
var x = ctrl.offsetLeft;
var y = ctrl.offsetTop;
while((obj = obj.offsetParent) != null) {
x += obj.offsetLeft;
y += obj.offsetTop;
}
menu.style.left = x + 'px';
menu.style.top = y + ctrl.offsetHeight + 'px';
menu.className = 'togglemenu';
menu.style.display = '';
document.body.appendChild(menu);
} else {
menu.style.display = menu.style.display == 'none' ? '' : 'none';
}
}
</script>
<script src="js/admin.js" type="text/javascript"></script>
<script src="js/calendar.js" type="text/javascript"></script>
<div class="container"><? if(isset($message)) { $type=isset($type)?$type:'correctmsg';  ?><div class="<?=$type?>"><p><?=$message?></p></div><? } ?><div class="mainbox nomargin">
<form action="index.php?admin_user/edit<?=$setting['seo_suffix']?>" method="post">
<input type="hidden" name="uid" value="<?=$member['uid']?>" />
<table class="opt">
<tr>
<th colspan="2">用户名:</th>
</tr>
<tr>
<td><input class="txt" value="<?=$member['username']?>" name="username"></td>
<td>用户的注册名称，可以修改</td>
</tr>
<tr>
<th colspan="2">密&nbsp;码</th>
</tr>
<tr>
<td><input class="txt" type="password" name="password" value=""></td>
<td>用户密码，可以修改</td>
</tr>
<tr>
<th colspan="2">密码确认</th>
</tr>
<tr>
<td><input class="txt" type="password"  name="confirmpw" value=""></td>
<td>&nbsp;</td>
</tr>
<tr>
<th colspan="2">邮箱</th>
</tr>
<tr>
<td><input class="txt"  name="email" value="<?=$member['email']?>"></td>
<td>用户电子邮件地址，可以修改</td>
</tr>
<tr>
<th colspan="2">用户组</th>
</tr>
<tr>
<td>
<select name="groupid">
<optgroup label="会员用户组">
<? if(is_array($usergrouplist)) { foreach($usergrouplist as $group) { ?>
<option <? if($member['groupid'] == $group['groupid']) { ?>selected<? } ?> value="<?=$group['groupid']?>"><?=$group['grouptitle']?></option>
<? } } ?>
</optgroup>
<optgroup label="系统用户组">
<? if(is_array($sysgrouplist)) { foreach($sysgrouplist as $group) { ?>
<option <? if($member['groupid'] == $group['groupid']) { ?>selected<? } ?> value="<?=$group['groupid']?>"><?=$group['grouptitle']?></option>
<? } } ?>
</optgroup>
</select>
</td>
<td>用户所在用户组</td>
</tr>
<tr>
<th colspan="2">总积分</th>
</tr>
<tr>
<td><input class="txt"  name="credits" value="<?=$member['credits']?>"></td>
<td>用户总积分，可以修改</td>
</tr>	
<tr>
<th colspan="2">经验值</th>
</tr>
<tr>
<td><input class="txt"  name="credit1" value="<?=$member['credit1']?>"></td>
<td>用户经验值，可以修改</td>
</tr>	
<tr>
<th colspan="2">财富值</th>
</tr>
<tr>
<td><input class="txt"  name="credit2" value="<?=$member['credit2']?>"></td>
<td>用户财富值，可以修改</td>
</tr>
<tr>
<th colspan="2">性别</th>
</tr>
<tr>
<td>
<input class="radio" id="pmcenteryes"  type="radio"  <? if($member['gender']) { ?>checked<? } ?> value="1" name="gender"><label for="pmcenteryes">帅哥</label>
<input class="radio" id="pmcenterno"   type="radio" <? if(!$member['gender']) { ?>checked<? } ?> value="0" name="gender"><label for="pmcenterno">美女</label>
</td>
<td>用户性别设置</td>
</tr>
<tr>
<th colspan="2">生日</th>
</tr>
<tr>
<td><input class="txt"  name="bday" value="<?=$member['bday']?>" onclick="showcalendar();"></td>
<td>用户出生日期</td>
</tr>

<tr>
<th colspan="2">联系电话</th>
</tr>
<tr>
<td><input class="txt"  name="phone" value="<?=$member['phone']?>"></td>
<td>手机、固话都可以</td>
</tr>
<tr>
<th colspan="2">QQ</th>
</tr>
<tr>
<td><input class="txt"  name="qq" value="<?=$member['qq']?>"></td>
<td>QQ号码</td>
</tr>
<tr>
<th colspan="2">MSN</th>
</tr>
<tr>
<td><input class="txt"  name="msn" value="<?=$member['msn']?>"></td>
<td>QQ号码</td>
</tr>
<tr>
<th colspan="2">个性签名</th>
</tr>
<tr>
<td colspan="2"><textarea class="area" name="signature"><?=$member['signature']?></textarea></td>
</tr>				


</table>
<div class="opt">
<input class="btn"  type="submit" value=" 提 交 " name="submit"></div>
</form>
</div>
</div>

</body>

</html>
